package com.ruoyi.supermarket.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 进货信息对象 supermarket_stock
 * 
 * @author faye
 * @date 2024-05-28
 */
public class SupermarketStock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 进货ID */
    private Long stockId;

    /** 进货编号 */
    @Excel(name = "进货编号")
    private Long stockNumber;

    /** 进货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "进货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date stockTime;

    /** 进货数量 */
    @Excel(name = "进货数量")
    private Long stockQuantity;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long stockCommodityId;

    /** 员工ID */
    @Excel(name = "员工ID")
    private Long stockStaffId;

    /** 进价 */
    @Excel(name = "进价")
    private Double stockCost;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /**  非数据库字段，商品名*/
    private SupermarketCommodity supermarketCommodity;

    public SupermarketCommodity getSupermarketCommodity() {
        return supermarketCommodity;
    }

    public void setSupermarketCommodity(SupermarketCommodity supermarketCommodity) {
        this.supermarketCommodity = supermarketCommodity;
    }

    public void setStockId(Long stockId)
    {
        this.stockId = stockId;
    }

    public Long getStockId() 
    {
        return stockId;
    }
    public void setStockNumber(Long stockNumber) 
    {
        this.stockNumber = stockNumber;
    }

    public Long getStockNumber() 
    {
        return stockNumber;
    }
    public void setStockTime(Date stockTime) 
    {
        this.stockTime = stockTime;
    }

    public Date getStockTime() 
    {
        return stockTime;
    }
    public void setStockQuantity(Long stockQuantity) 
    {
        this.stockQuantity = stockQuantity;
    }

    public Long getStockQuantity() 
    {
        return stockQuantity;
    }
    public void setStockCommodityId(Long stockCommodityId) 
    {
        this.stockCommodityId = stockCommodityId;
    }

    public Long getStockCommodityId() 
    {
        return stockCommodityId;
    }
    public void setStockStaffId(Long stockStaffId) 
    {
        this.stockStaffId = stockStaffId;
    }

    public Long getStockStaffId() 
    {
        return stockStaffId;
    }
    public void setStockCost(Double stockCost) 
    {
        this.stockCost = stockCost;
    }

    public Double getStockCost() 
    {
        return stockCost;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("stockId", getStockId())
            .append("stockNumber", getStockNumber())
            .append("stockTime", getStockTime())
            .append("stockQuantity", getStockQuantity())
            .append("stockCommodityId", getStockCommodityId())
            .append("stockStaffId", getStockStaffId())
            .append("stockCost", getStockCost())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("supermarketCommodity",getSupermarketCommodity())

            .toString();
    }
}
